<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>账单详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../../bangnuo/admin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../../bangnuo/admin/style/admin.css" media="all">
    <script src="../../../../bangnuo/admin/js/jquery-1.8.0.min.js"></script>
    <script src="../../../../bangnuo/admin/layui/layui.all.js"></script>
    <link rel="stylesheet" href="../../../../bangnuo/admin/layui/css/layui.mobile.css">
</head>

<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <div class="layui-inline">
                        <label class="layui-form-label">卖家支付宝账号</label>
                        <div class="layui-input-block">
                            <input type="text" name="buyerLogonId" id="buyerLogonId" placeholder="请输入"
                                   autocomplete="off" class="layui-input" readonly="readonly">
                        </div>
                    </div>
                    <br/>
                    <div class="layui-inline">
                        <label class="layui-form-label">买家付款的金额</label>
                        <div class="layui-input-block">
                            <input type="text" name="buyerPayAmount" id="buyerPayAmount" placeholder="请输入"
                                   autocomplete="off" class="layui-input" readonly="readonly">
                        </div>
                    </div>
                    <br/>
                    <div class="layui-inline">
                        <label class="layui-form-label">交易中可给用户开具发票的金额</label>
                        <div class="layui-input-block">
                            <input type="text" name="invoiceAmount" id="invoiceAmount" placeholder="请输入"
                                   autocomplete="off" class="layui-input" readonly="readonly">
                        </div>
                    </div>
                    <br/>
                    <div class="layui-inline">
                        <label class="layui-form-label">商户订单号</label>
                        <div class="layui-input-block">
                            <input type="text" name="outTradeNo" id="outTradeNo" placeholder="请输入" autocomplete="off"
                                   class="layui-input" readonly="readonly">
                        </div>
                    </div>
                    <br/>
                    <div class="layui-inline">
                        <label class="layui-form-label">实收金额</label>
                        <div class="layui-input-block">
                            <input type="text" name="receiptAmount" id="receiptAmount" placeholder="请输入"
                                   autocomplete="off" class="layui-input" readonly="readonly">
                        </div>
                    </div>
                    <br/>
                    <div class="layui-inline">
                        <label class="layui-form-label">交易金额</label>
                        <div class="layui-input-block">
                            <input type="text" name="totalAmount" id="totalAmount" placeholder="请输入" autocomplete="off"
                                   class="layui-input" readonly="readonly">
                        </div>
                    </div>
                    <br/>
                    <div class="layui-inline">
                        <label class="layui-form-label">支付宝交易号</label>
                        <div class="layui-input-block">
                            <input type="text" name="tradeNo" id="tradeNo" placeholder="请输入" autocomplete="off"
                                   class="layui-input" readonly="readonly">
                        </div>
                    </div>
                    <br/>
                    <!--<div class="layui-inline">
                        <label class="layui-form-label">支付时间</label>
                        <div class="layui-input-block">
                            <input type="text" name="gmtPayment" id="gmtPayment" placeholder="请输入" autocomplete="off"
                                   class="layui-input" readonly="readonly">
                        </div>
                    </div>-->
                </div>
            </div>
        </div>
    </div>
</div>
<!--获取id-->
<script type="text/javascript">
    $(document).ready(function () {
        //获取地址栏路径
        var url = window.location.href;
        //获取“=”的下标
        var pos = url.indexOf("=");
        //获取“=”后的全部字符（用户id）
        var id = url.substring(pos + 1, url.length);
        $.ajax({
            url: "/order/findByOrderId/" + id,
            contentType: "application/json;charset=UTF-8",
            type: "GET",
            success: function (data) {
                $("#buyerLogonId").val(data.queryResult.list[0].buyerLogonId);
                $("#buyerPayAmoun").val(data.queryResult.list[0].buyerPayAmount);
                $("#invoiceAmount").val(data.queryResult.list[0].invoiceAmount);
                $("#outTradeNo").val(data.queryResult.list[0].outTradeNo);
                $("#receiptAmount").val(data.queryResult.list[0].receiptAmount);
                $("#totalAmount").val(data.queryResult.list[0].totalAmount);
                $("#tradeNo").val(data.queryResult.list[0].tradeNo);
                // $("#gmtPayment").val(data.queryResult.list[0].gmtPayment);
            }
        });
    });
</script>
<!--执行修改-->
</body>

</html>